#pragma once
#include "imageloader.h"
#include <QtGui>

/****************************************************
  Image loader implemented by Qt.
 ****************************************************/
class QImageLoader :
	public ImageLoader
{
public:
	QImageLoader(void);
	virtual ~QImageLoader(void);

	virtual int loadImage(char *);
	virtual int bindImage(PixelImage *);

        // Get the pixmap
        QPixmap * getPixmap(){
            return _pixMap;
        }

private:
        bool _imageLoaded; // If the image is loaded
        QPixmap * _pixMap; // Pixel map
};

